// logs.js
const util = require('../../utils/util.js')
const app = getApp()

Page({

  onMyEvent: function(e){
    console.log(e.detail)
    e.detail // 自定义组件触发事件时提供的 detail 对象
  },

  tapName:function(res){
    // console.log(1111)
  },

  data: {
    arr:[
      {num:1},
      {num:2},
      {num:3},
    ],
    flag:true,
    flag1:true,
    a:1,
    b:2,
    length:6,
    name:"张三",
    object: {
      key: 'Hello ',
      ss:"ss"
    },
    array: ['MINA',"111","2222","333"],
    
  },
  oncl(res){
    console.log(this)
    if(!this.data.flag){
      this.setData({
        flag:true
      })
    }else{
      this.setData({
        flag:false
      })
    }
  },

  cat(){
    console.log(1111)
    wx.setStorageSync("name","张三")
    console.log(wx.getStorageSync('name'))
    console.log(app.globalData)
  },

  onLoad() {
  //  console.log("1111")
  }
})
